<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<h:html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:cc="http://MedMarkP1"
	xmlns:composite="http://java.sun.com/jsf/composite"
	xmlns:fn="http://java.sun.com/jsp/jstl/functions">
	
<composite:interface>
	<composite:attribute name="id"></composite:attribute>
	<composite:attribute name="profissional" type="br.com.medmark.model.hibernate.Profissional"></composite:attribute>
	<composite:attribute name="consulta" type="java.util.List"></composite:attribute>
</composite:interface>

<composite:implementation>

	<div id="#{not empty cc.attrs.id ? cc.attrs.id : 'div1'}">
		<p:accordionPanel multiple="true">
			<p:tab title="Médico 1">
				<p:dataTable>
					<p:column headerText="Horário"></p:column>
					<p:column headerText="Paciente"></p:column>
					<p:column headerText="Tipo"></p:column>
				</p:dataTable>
			</p:tab>
			<p:tab title="Médico 2">
				<p:dataTable>
					<p:column headerText="Horário"></p:column>
					<p:column headerText="Paciente"></p:column>
					<p:column headerText="Tipo"></p:column>
				</p:dataTable>
			</p:tab>
		</p:accordionPanel>
	</div>

</composite:implementation>	
	
</h:html>